package Metier.Objets;

public class Stat {

    private final String libelle;
    private final int nbVendu;
    private final int nbCuit;
    private final int nbJete;
    private final boolean estBoisson;

    public Stat(String lLibelle, int lNbVendu, int lNbCuit, int lNbJete, boolean estBoisson) {
        this.libelle = lLibelle;
        this.nbVendu = lNbVendu;
        this.nbCuit = lNbCuit;
        this.nbJete = lNbJete;
        this.estBoisson = estBoisson;
    }

    public Object[] toVector() {
        Object[] v = new Object[4];

        v[0] = libelle;
        v[1] = nbVendu;
        v[2] = estBoisson ? null : nbCuit;
        v[3] = nbJete;

        return v;
    }
}
